// Copyright (c) 2022 CHANGLEI. All rights reserved.

import 'package:aircraft_war/foundation/routes.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/services.dart';

void main() {
  runApp(const _App());
  SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
    systemStatusBarContrastEnforced: false,
    systemNavigationBarContrastEnforced: false,
    statusBarColor: CupertinoColors.white.withOpacity(0),
    systemNavigationBarColor: CupertinoColors.white.withOpacity(0),
  ));
  SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
}

class _App extends StatelessWidget {
  const _App({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CupertinoApp(
      routes: Routes.routes,
    );
  }
}
